import Vue from 'vue'

Vue.filter('university', (type) => {
  let typeText
  if (type === 1) {
    typeText = '高中'
  } else if (type === 2) {
    typeText = '专科'

  } else if (type === 3) {
    typeText = '本科'
  } else if (type === 4) {
    typeText = '硕士'
  } else if (type === 5) {
    typeText = '博士'
  } else {
    typeText = '其他'
  }
  return typeText;
});

Vue.filter('formatSalary', (type) => {
  let typeText
  if (type === 1) {
    typeText = '小于5000'
  } else if (type === 2) {
    typeText = '5000-10000'

  } else if (type === 3) {
    typeText = '10000-20000'
  } else if (type === 4) {
    typeText = '20000-50000'
  } else {
    typeText = '50000以上'
  }
  return typeText
})

Vue.filter('formateDate', (type) => {
  let typeText
  if (type === 1) {
    typeText = '结婚'
  } else if (type === 2) {
    typeText = '谈恋爱'
  } else if (type === 3) {
    typeText = '认识朋友'
  } else {
    typeText = '其他'
  }
  return typeText
})


Vue.filter('formatePay', (type) => {
  let typeText
  if (type === 1) {
    typeText = '男方支付'
  } else if (type === 2) {
    typeText = '女方支付'
  } else if (type === 3) {
    typeText = 'AA支付'
  } else {
    typeText = '其他'
  }
  return typeText
})

Vue.filter('formateFunds', (type) => {
  let typeText
  if (type === 1) {
    typeText = '小于1000'
  } else if (type === 2) {
    typeText = '1000-2000'
  } else if (type === 3) {
    typeText = '2000-5000'
  } else if (type === 4) {
    typeText = '5000-10000'
  } else if (type === 5) {
    typeText = '大于10000'
  } else {
    typeText = '其他'
  }
  return typeText
})


